.message-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-list.empty {
  justify-content: center;
  align-items: center;
}

.empty-state {
  text-align: center;
  opacity: 0.8;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--foreground);
}

.empty-state p {
  color: var(--foreground);
  opacity: 0.7;
  margin-bottom: 16px;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.suggestion {
  background: var(--selection-background);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.suggestion:hover {
  background: var(--button-background);
  color: var(--button-foreground);
}

.message {
  max-width: 90%;
  padding: 10px 14px;
  border-radius: 8px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  background: var(--button-background);
  color: var(--button-foreground);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.message.assistant {
  background: var(--selection-background);
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

.message.error {
  background: var(--error-background);
  color: var(--error-foreground);
  margin-right: auto;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.message-role {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.7;
}

.streaming-indicator {
  display: flex;
  gap: 3px;
}

.streaming-indicator .dot {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse 1.4s infinite ease-in-out;
}

.streaming-indicator .dot:nth-child(1) { animation-delay: 0s; }
.streaming-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.streaming-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

.message-content {
  line-height: 1.5;
}

.message-content p:first-child {
  margin-top: 0;
}

.message-content p:last-child {
  margin-bottom: 0;
}

